﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;

namespace IDRead_CVR
{
    [ComVisible(true)]
    [InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
    [Guid("862B35FB-6A11-4A94-A2C5-599112DF073F")]
    public interface IComReader
    {
        [DispId(1)]
        bool ReadCard(int port);

        [DispId(2)]
        bool Close();

        [DispId(3)]
        event ReadCompleteEventHandler ReadComplete;
    }

    [ComVisible(true)]
    [InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
    [Guid("5A14F153-D8DD-4CA7-A906-5B8BD4D45CC6")]
    public interface IComReaderEvent
    {
        [DispId(4)]
        void ReadComplete(ReadCompleteEventArgs e);
    }
}
